home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / bipl.zip / PROCS.ZIP / LIST2TAB.ICN < prev    next >
Text File  |  1992-09-28  |  793b  |  30 lines

  1. ############################################################################
  2. #
  3. #    File:     list2tab.icn
  4. #
  5. #    Subject:  Procedure to write list as tab-separated string
  6. #
  7. #    Author:   Ralph E. Griswold
  8. #
  9. #    Date:     May 21, 1992
  10. #
  11. ###########################################################################
  12. #
  13. #  This procedure writes a list as a tab-separated string.
  14. #  Carriage returns in files are converted to vertical tabs.
  15. #
  16. ############################################################################
  17. #
  18. #  See also: tab2list.icn, tab2rec.icn, rec2tab.icn
  19. #
  20. ############################################################################
  21.  
  22. procedure list2tab(L)
  23.  
  24.    every writes(map(L[1 to *L - 1], "\n", "\v"),"\t")
  25.    write(map(L[-1], "\n", "\v"))
  26.  
  27.    return
  28.  
  29. end
  30.